package org.microframework.base.core.log.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 日志配置属性
 */
@ConfigurationProperties(prefix = "log")
public class LogProperties {
    
    /**
     * 是否开启日志
     */
    private boolean enabled = true;
    
    /**
     * 是否开启异步处理
     */
    private boolean async = true;
    
    /**
     * 日志保留天数
     */
    private int retainDays = 30;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public boolean isAsync() {
        return async;
    }

    public void setAsync(boolean async) {
        this.async = async;
    }

    public int getRetainDays() {
        return retainDays;
    }

    public void setRetainDays(int retainDays) {
        this.retainDays = retainDays;
    }
} 